setBounds

open fun setBounds(@NonNull() options: CameraBoundsOptions): Expected<String, None>

Sets the `camera bounds options` of the map. The map will retain its current values for anydetails not passed via the camera bounds options arguments.When camera bounds options are set, the camera center is constrained by these bounds, as well as the minimumzoom level of the camera, to prevent out of bounds areas to be visible.Note that tilting or rotating the map, or setting stricter minimum and maximum zoom within `options` may still cause some out of bounds areas to become visible.

Return

A string describing an error if the operation was not successful, expected with `void` value otherwise.

Parameters

options

The `camera bounds options` to set.